import request from "@/utils/request";

export interface activityZonesType {
    cover: string;
    webUrl: string;
    name: string;
    remark: string;
    updateTime: number;
    id: string;
    onsellTime: number;
}

export type activityZonesListType = activityZonesType[];

export interface activityZonesModel {
    content: activityZonesListType;
    number: number;
    numberOfElements: number;
    size: string;
    sort: null;
    statistics: null;
    totalElements: number;
    totalPages: number;
    useOffset: boolean;
}

// 获取排行榜数据
export const getActivityZones = () => {
    return request.get<any, activityZonesModel>(
        "http://zsjyyds.online:9000/apis/moment/activityZones/collect/default?access_token=6b44a37a-0df2-4a8a-a4b8-7c0cd2d2a222&pageSize=16"
    );
};
